import * as ax from './request';

export const url = ax.url + '/op'
// export const url = ax.url



export const canTake = () => {
  return ax.g(url + '/coupon/canTake')
}

export const my = () => {
  return ax.g(url + '/coupon/my')
}

export const take = (params) => {
  return ax.p(url + '/coupon/take', params)
}


export const canUse = (params) => {
  return ax.p(url + '/coupon/canUse', params)
}


export const signIn = (params) => {
  return ax.p(url + '/coupon/signIn', params)
}

export const prepayReview = (params) => {
  return ax.p(url + '/coupon/prepay/review', params)
}

export const prepay = (params) => {
  return ax.p(url + '/coupon/prepay', params)
}

export const finishiPay = (params) => {
  return ax.g(url + '/coupon/finishiPay', params)
}



